add_ops_compile_options(
        OP_NAME ForeachCopy
        OPTIONS --cce-auto-sync=on
                -Wno-deprecated-declarations
                -Werror
)

target_sources(op_host_aclnn PRIVATE
op_host/foreach_copy.cpp
)

target_include_directories(op_host_aclnn PRIVATE
        ${OP_COMMON_DIR}/inc
)

target_sources(optiling PRIVATE
        ${OP_COMMON_DIR}/src/foreach/op_tiling/foreach_tiling_func.cpp
)

target_include_directories(optiling PRIVATE
        ${OP_COMMON_DIR}/inc
)

target_sources(opsproto PRIVATE
         op_host/foreach_copy.cpp
)

install(FILES op_kernel/foreach_copy.cpp
        DESTINATION ${ASCEND_IMPL_OUT_DIR}/dynamic)